package com.yenlien.traceyun.plant.controller.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author jialong
 * @date 2021/05/07
 * @description: 天气
 **/
@Data
@NoArgsConstructor
public class WeatherVo implements Serializable {
    private static final long serialVersionUID = -4341852494941981950L;

    // 当前温度(℃)
    private int temp;

    // 相对湿度(%)
    private int rh;

    // 风力等级
    private String windClass;

    // 天气现象
    private String text;

    // 风向描述
    private String windDir;

    // 体感温度(℃)
    private int feelsLike;

    //数据更新时间，北京时间
    private String uptime;

    // 预报数据
    private List<Weather5Prediction> weather5Prediction;

    public WeatherVo(int temp, int rh, String windClass, String text, String windDir, int feelsLike, String uptime, List<Weather5Prediction> weather5Prediction) {
        this.temp = temp;
        this.rh = rh;
        this.windClass = windClass;
        this.text = text;
        this.windDir = windDir;
        this.feelsLike = feelsLike;
        this.uptime = uptime;
        this.weather5Prediction = weather5Prediction;
    }
}
